package com.joysuch.wwyt.attendance.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.joysuch.wwyt.common.entity.UserDataEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author zqw
 * @since 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("wwyt_attendance_group")
@ApiModel(value = "PatrolAttendanceGroup对象", description = "")
public class AttendanceGroup extends UserDataEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "考勤组名称")
    private String groupName;

    @ApiModelProperty(value = "责任部门id集合")
    private String resDepartIds;

    @ApiModelProperty(value = "参与对象id集合")
    private String participantIds;

    @ApiModelProperty(value = "参与对象类型:0人员 1部门")
    private Integer participantType;

    @ApiModelProperty(value = "0固定考勤 1排班制考勤")
    private Integer attendanceFlag;

    @ApiModelProperty(value = "考勤json")
    private String attendanceJson;

    @ApiModelProperty(value = "0当月生效 1下个月生效")
    private Integer effectFlag;

}
